import json


class ReturnObj:
    accnum = None
    name = None;
    certiNum = None;
    oldBasenum = None;
    newBasenum = None;

    def __str__(self):
        return f"accnum:{self.accnum}, name:{self.name}, certiNum:{self.certiNum}, oldBasenum:{self.oldBasenum}, newBasenum:{self.newBasenum}"


# 调用数据库，查询该单位下可以进行缴存基数调整的人员，组装请求参数
file_data = open("D:/证件号码.txt", 'r', encoding='UTF-8')
zjhm_list = []

for data in file_data:
    data = data.strip()
    zjhm_list.append(data);

count = 1

data_list = []
while count <=50:
    data_dict = {}
    zjhm = zjhm_list[count-1]
    data_dict["proftitl"] = '710'
    data_dict["education"] = '1'
    data_dict["certinum"] = zjhm
    data_dict["houseHoldRegister"] = '01'
    data_dict["jointCardNo"] = '6544534553522212'
    data_dict["jointCardBank"] = '01'
    data_dict["insuranceNum"] = str(4333423422 + count)
    data_dict["mobilePhone"] = str(17827420908 + count)
    data_dict["credType"] = '01'
    data_dict["persondpBasenum"] = '5000'
    data_dict["name"] = '张三' + str(count)
    data_dict["maritalStatus"] = '10'
    count += 1;
    data_list.append(data_dict)

print('{"list":[')
for data in data_list:
    print(f"{data},")
print(']}')

